package com.rest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value="view")
public class ViewController {

	@RequestMapping(value="index")
	public String index(Model model){
		model.addAttribute("name", "duhao");
		return "index";
	}
	
}
